#!/bin/sh

echo ""
echo "Script to start Yafrid-NG"
echo ""

echo "Deploying the node and the registry..."

icegridnode --Ice.Config=config.icegrid &
sleep 3

echo ""
echo "Deploying Yafrid-NG..."
icegridadmin --Ice.Config=config.icegrid -e "application add yafridng.xml"

#arrancando el router
icegridadmin --Ice.Config=config.icegrid -e "server start Yafridng.Glacier2"
